<?php

class B extends Entity
{
	/**
	 * getter name
	 *
	 * @return String
	 */
	public function getName()
	{
		return $this->name;
	}
		
	/**
	 * Setter name
	 *
	 * @param String name
	 */
	public function setName($name)
	{
		$this->name = $name;
	}	
	
	/**
	 * getter as
	 *
	 * @return array[]A
	 */
	public function getAs()
	{
		return $this->as;
	}
		
	/**
	 * Setter as
	 *
	 * @param array[]A as
	 */
	public function setAs($as)
	{
		$this->as = $as;
	}
		
	protected function __meta()
	{
		parent::__meta();

		Map::setField($this,new TString("name"));
		Map::setField($this,new ManyToMany("as","A",'bs',ManyToMany::RIGHT));
	}
}

?>